<template>
  <div>
    <el-table :data="tableData" :border="true">
      <el-table-column type="index" label="#" fixed />
      <el-table-column prop="project_short_name_name" label="项目简称" fixed />
      <el-table-column prop="event_name" label="事项名称" />
      <el-table-column prop="event_department_name" label="责任部门" />
      <el-table-column prop="event_creater_name" label="上报人" />
      <el-table-column prop="update_time" label="上报时间">
        <template scope="scope">
          {{ scope.row.update_time | formatDate }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import moment from "moment";
export default {
  props: ["tableData"],
  filters: {
    formatDate(value) {
      return moment(value).format("YYYY-MM-DD HH:mm");
    },
  },
};
</script>

<style>
</style>